package com.sohh.demo;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2021/2/21 15:57
 */
public class Test3 {

    public static void main(String[] args) {
        Timer timer = new Timer("timer1", false);

        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {

                System.out.println(DateUtil.now());
            }
        };
        timer.schedule(timerTask,1000,3000);

        ExecutorService pool = Executors.newCachedThreadPool();

        

    }



}
